package mall.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import mall.dao.IndustryDAO;
import mall.pojo.Industry;

@Service
public class IndustryServiceImpl implements IndustryService {

	@Autowired
	private IndustryDAO industryDAO;
	@Override
	@Transactional
	public List<Industry> listIndustry() {
		return industryDAO.listIndustry();
	}

	@Override
	@Transactional
	public Industry getIndustry() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	@Transactional
	public void addIndustry(Industry industry) {
		// TODO Auto-generated method stub
		industryDAO.createIndustry(industry);
		
	}

	@Override
	public void updateIndustry(Industry industry) {
		// TODO Auto-generated method stub
		
	}

}
